import { createApp} from 'vue'
import App from './App.vue'
import './index.css'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//状态管理
import { createPinia } from 'pinia'


const app=createApp(App)
app.use(router)
app.use(ElementPlus)
// 安装 Pinia

app.use(createPinia())

import Editor from 'bin-editor-next';

import * as ace from 'brace'
import 'brace/ext/emmet'
import 'brace/ext/language_tools'
import 'brace/mode/yaml'
import 'brace/snippets/yaml'
import 'brace/theme/chrome'
app.component(Editor.name, Editor)

//yaml编辑器
import YamlEdit from '@/components/k8s/yaml/YamlEdit.vue' 
app.component('YamlEdit',YamlEdit)



app.mount('#app')
